Hi there,
int datLnkSus
int datObjMod
Date dLnkSus
Date dObj
int nSusLinks = 0
Object o, src
Module m = current
Link lnk
for o in m do
{
for lnk in o -> "*" do
{
src = source (lnk)
dLnkSus = dateOnly lnk."Suspicion Cleared Forwards"""
dObj = src."Last Modified On"""
datLnkSus = intOf(dLnkSus)
datObjMod = intOf(dObj)
if(dLnkSus != dObj)
nSusLinks++
}
}
print "\nSuspect Links : "nSusLinks""
tommy3824 - Fri Jan 16 08:45:52 EST 2009 |
Re: Suspect Links
Couple of points:
Module m = current Module
Object o = null
Link l = null
Object t = null
int count = 0
for o in m do
{
for l in o -> "*" do
{
t = target(l)
if (lastModifiedTime(t) > lastModifiedTime(o)) count++
}
}
print count ""
|
Re: Suspect Links Tony_Goodman - Fri Jan 16 10:38:16 EST 2009
Couple of points:
Module m = current Module
Object o = null
Link l = null
Object t = null
int count = 0
for o in m do
{
for l in o -> "*" do
{
t = target(l)
if (lastModifiedTime(t) > lastModifiedTime(o)) count++
}
}
print count ""
|
Re: Suspect Links Tony_Goodman - Fri Jan 16 10:39:24 EST 2009 I got it to work. Thanks a lot. Sorry the code I pasted wasn't the closest version I had. I copied the wrong one. I was actually looking for in-links. As a last ditch effort I was using the != to get some sort of result. lastModifiedTime is what really did it :) I like how thats included in the DXL help... |